Fix the build with cups < 2.3
authorMatthias Clasen <mclasen@redhat.com>
Fri, 31 Jul 2020 14:00:20 +0000 (10:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 31 Jul 2020 14:01:45 +0000 (10:01 -0400)
PPD_CUSTOM_UNKNOWN was introduced in cups 2.3.
Only handle it when we build against a new enough cups.

Fixes: #2968
modules/printbackends/gtkprintbackendcups.c

index 6453e824d93893f39fa832f34d9aa05b7f78a916..f3435b57bbf44cf73a8702b086394a6be10a514f 100644 (file)
@@ -647,7 +647,9 @@ add_cups_options (const char *key,
                           custom_value = TRUE;
                           break;
 
+#if CUPS_VERSION_MAJOR == 2 && CUPS_VERSION_MINOR >= 3
                         case PPD_CUSTOM_UNKNOWN:
+#endif
                         default :
                           custom_value = FALSE;
                         }